﻿  //引进TT模板的命名空间
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OilWaterSystem.IDAL;

namespace OilWaterSystem.DAL
{
    //一次跟数据库交互的会话
    public partial class DbSession : IDbSession //代表应用程序跟数据库之间的一次会话，也是数据库访问层的统一入口
    {


	//在这里需要一个for循环来遍历数据库中所有的表放置在下面即可，这样就实现了所有的表对应的仓储显示出来了。
	        public IDAL.ITb_CommonWellRepository Tb_CommonWellRepository
        {
            get { return new Tb_CommonWellRepository(); }
        }
		        public IDAL.ITb_DepartmentRepository Tb_DepartmentRepository
        {
            get { return new Tb_DepartmentRepository(); }
        }
		        public IDAL.ITb_Exception_LogRepository Tb_Exception_LogRepository
        {
            get { return new Tb_Exception_LogRepository(); }
        }
		        public IDAL.ITb_Gas_WellRepository Tb_Gas_WellRepository
        {
            get { return new Tb_Gas_WellRepository(); }
        }
		        public IDAL.ITb_Login_LogRepository Tb_Login_LogRepository
        {
            get { return new Tb_Login_LogRepository(); }
        }
		        public IDAL.ITb_Oil_WellRepository Tb_Oil_WellRepository
        {
            get { return new Tb_Oil_WellRepository(); }
        }
		        public IDAL.ITb_Operation_LogRepository Tb_Operation_LogRepository
        {
            get { return new Tb_Operation_LogRepository(); }
        }
		        public IDAL.ITb_RoleRepository Tb_RoleRepository
        {
            get { return new Tb_RoleRepository(); }
        }
		        public IDAL.ITb_UserRepository Tb_UserRepository
        {
            get { return new Tb_UserRepository(); }
        }
		        public IDAL.ITb_Water_WellRepository Tb_Water_WellRepository
        {
            get { return new Tb_Water_WellRepository(); }
        }
		        public IDAL.ITb_Well_TypeRepository Tb_Well_TypeRepository
        {
            get { return new Tb_Well_TypeRepository(); }
        }
		}
}